package com.toymate.modules.iot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.toymate.common.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * IotMessage
 *
 * @author weirdor (179946422@qq.com)
 * @version v1.0.0
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("iot_message")
@ApiModel(value = "IotMessage对象", description = "IotMessage对象")
public class IotMessage extends BaseEntity<IotMessage> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(name = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(name = "设备ID")
    private String deviceId;

    @ApiModelProperty(name = "题目")
    private String question;

    @ApiModelProperty(name = "答案")
    private String answer;

    @ApiModelProperty(name = "会话ID")
    private String conversationId;

    @ApiModelProperty(name = "额外信息")
    private String expand;

}
